package com.xsh.gls.service.impl;

import com.xsh.gls.mapper.CustomerMapper;
import com.xsh.gls.pojo.Customer;
import com.xsh.gls.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author shkstart
 * @date 2019/1/17 - 14:12
 */
@Service
public class CustomerServiceImpl implements CustomerService {

    @Autowired
    private CustomerMapper mapper;

    @Override
    public Customer queryCustomerById(Integer id) {
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public int insert(Customer customer) {
        return mapper.insert(customer);
    }
}
